package impl.gui.util;

import impl.reasoning.ChoiceResult;

import javax.swing.table.DefaultTableModel;

import org.semanticweb.owlapi.model.OWLNamedIndividual;

public class ChoiceTableModel extends DefaultTableModel {

	public ChoiceTableModel() {

		addColumn("Choice");
		addColumn("Utility");

	}

	@Override
	public Class<?> getColumnClass(int columnIndex) {
		switch (columnIndex) {
			case 0:
				return OWLNamedIndividual.class;
			case 1:
				return ChoiceResult.class;
			default:
				return OWLNamedIndividual.class;
		}
	}

}